package com.ocom.srvpaccess.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ocom.common.entity.access.EntityMjRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface IDaoMjRecord extends BaseMapper<EntityMjRecord> {
    @Insert("INSERT INTO mj_record(com_id,dept_id,dept_name,p_id,p_code,p_name,device_id,device_no,\n" +
            "device_name,region_id,region_name,area_id,area_name,open_time,open_mode,open_state,create_time) \n" +
            "VALUES(#{comId},#{deptId},#{deptName}," +
            "#{pId},#{pCode},#{pName},#{deviceId}," +
            "#{deviceNo},#{deviceName},#{regionId}," +
            "#{regionName},#{areaId},#{areaName}," +
            "#{openTime},#{openMode},#{openState}," +
            "#{createTime})")
    void insertInfo(Long comId, Long deptId, String deptName, Long pId, String pCode, String pName,
                    Long deviceId, String deviceNo, String deviceName, Long regionId, String regionName,
                    Long areaId, String areaName,Date openTime,Long openMode,Long openState,Date createTime);

}
